﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using AceSoft.RetailPlus.Security;
using System.Web.Security;

namespace AceSoft.RetailPlus.DataService
{
    public class Login
    {
        /*Return true when authenticated*/
        public static bool ValidateUser(LoginModel myLogin)
        {
            Identity.isUserValidated =
                /* DB Procedure here */

                true;

            Identity.Firstname = "JEZER";
            Identity.Lastname = "BAUTISTA";
            Identity.LastLogin= DateTime.Now.ToString("dd MMM yyyy hh:mm tt");


            return Identity.isUserValidated;
        }
    }
}